package com.zch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.CompanyMessageMapper;
import com.zch.dao.model.CompanyMessage;
import com.zch.dao.model.CompanyMessageExample;
import com.zch.daoEx.CompanyMessageMapperEx;
import com.zch.daoEx.model.CompanyMessageEx;

@Service
public class CompanyMessageService {
	@Autowired
	private CompanyMessageMapper companyMessageMapper;
	@Autowired
    private CompanyMessageMapperEx companyMessageMapperEx;

	public int countByExample(CompanyMessageExample example) {
		return this.companyMessageMapper.countByExample(example);
	}

	public CompanyMessage selectByPrimaryKey(String id) {
		return this.companyMessageMapper.selectByPrimaryKey(id);
	}

	public List<CompanyMessage> selectByExample(CompanyMessageExample example) {
		return this.companyMessageMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.companyMessageMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(CompanyMessage record) {
		return this.companyMessageMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(CompanyMessage record) {
		return this.companyMessageMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(CompanyMessageExample example) {
		return this.companyMessageMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(CompanyMessage record, CompanyMessageExample example) {
		return this.companyMessageMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(CompanyMessage record, CompanyMessageExample example) {
		return this.companyMessageMapper.updateByExample(record, example);
	}

	public int insert(CompanyMessage record) {
		return this.companyMessageMapper.insert(record);
	}

	public int insertSelective(CompanyMessage record) {
		return this.companyMessageMapper.insertSelective(record);
	}

    public CompanyMessageEx selectAppList() {
        return this.companyMessageMapperEx.selectAppList();
    }

}
